package com.ewzj.bigdata.mvp.contract

import com.ewzj.bigdata.mvp.model.bean.UserBean
import com.ewzj.bigdata.mvp.model.rspbean.BaseData
import com.jess.arms.mvp.IModel
import com.jess.arms.mvp.IView
import io.reactivex.Observable
import java.io.File

/**
 * author:zhangjing
 * 作用:
 * return:
 */
class MineFragmentContract{
    interface View : IView{
        fun loadheadImg(img:String)
        fun setNickName(user:UserBean)
        fun setBgImg(bgimg:String)
        fun updateUserBg(bgimg:String)
    }

    interface Model: IModel{
        fun loadUserInfo(): Observable<BaseData<UserBean>>
        fun upLoadPic(file: File): Observable<BaseData<List<String>>>
    }
}